package com.showcai.service;

import com.github.pagehelper.PageInfo;
import com.showcai.module.Prizes;
import com.showcai.myRunTime.MyRunTimeExcption;

import java.util.List;
import java.util.Map;

/**
 * Created by Baggio on 2019-1-3.
 */
public interface PrizesService {
    /**
     * 更新奖品
     * @param prizes
     * @throws MyRunTimeExcption
     */
    void modifyPrizes(Prizes prizes)throws MyRunTimeExcption;

    /**
     * 获取奖品列表
     * @param activityId
     * @return
     */
    List<Prizes> getPrizesListByActivityId(Integer activityId)throws MyRunTimeExcption;

    /**
     * 获取奖品列表，分页
     * @param map
     * @return
     * @throws MyRunTimeExcption
     */
    PageInfo getPrizesList(Map<String,String> map)throws MyRunTimeExcption;


    Prizes selectPrizesByTid(Long tid)throws MyRunTimeExcption;
}
